import { PLATFORM_Map } from "@/constant/index";
import unitsmanager from "@/assets/images/leftminsvg/unitsmanager.svg?component";
export default {
	path: '/units-manager',
	redirect: '/manage/units-manager/units-manager',
	meta: {
		title: '单位管理',
		showLink: true,
		rank: 2,
		icon: unitsmanager,
		platform: [PLATFORM_Map.manage],
		// roles:['system.user']
	},
	children: [
		{
			name: 'units-manager',
			path: '/manage/units-manager/units-manager',
			component: () => import('@/views/manage/units-manager/units-manager/index.vue'),
			meta: {
				title: '单位管理',
				showParent: true,
				roles:['system.unity.find']

			}
		}, {
			name: 'new-registered-unit',
			path: '/manage/units-manager/new-registered-unit',
			component: () => import('@/views/manage/units-manager/new-registered-unit/index.vue'),
			meta: {
				title: '单位注册',
				showParent: true,
				 roles:['system.register.find']
			}
		},
		{
			name: 'roles-manager',
			path: '/manage/units-manager/roles-manager',
			component: () => import('@/views/manage/units-manager/roles-manager/index.vue'),
			meta: {
				title: '单位权限组',
				 roles:['system.unity-role.find'],
				showParent: true,

			}
		},
		{
			name: 'unit-settings',
			path: '/manage/units-manager/unit-settings',
			component: () => import('@/views/manage/units-manager/unit-settings/index.vue'),
			meta: {
				title: '单位设置',
				showParent: true,
				roles:['system.unity.setting']
			}
		}
	]
} satisfies RouteConfigsTable;
